package com.imooc.product.enums;

import lombok.Getter;

/**
 * Description: 结果枚举类
 * Project: product <br />
 * ClassName: ResultEnum <br />
 * Copyright: Copyright (c) 2018 deshang<br />
 *
 * @author Wang Shaopeng
 * @date 2018/12/26 22:34
 * @modifier
 * @modifyContent
 */
@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(1, "商品不存在"),
    PRODUCT_STOCK_ERROR(2, "库存有误");

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
